package ConneccaoDAO;

// Persist�ncia.

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;


public class UsuarioDAO {
	public Connection con;
    public Statement stmt;
    public ResultSet rs;
    public void Conecta(){  
  
          
  
        try{  
            String driver = "com.mysql.jdbc.Driver";  
        String url = "jdbc:mysql://localhost:3306/estoque";  
        String usuario = "root";  
        String senha = "p.Natalino";
  
            Class.forName(driver);  
            con = DriverManager.getConnection(url, usuario, senha);  
            stmt = con.createStatement();
        }  
        catch(SQLException E){  
           
        }  
        catch (ClassNotFoundException E){  
            
        }  
    }
	
	
}
